import request from '@/utils/request'

// 查询储存过程步骤分布处理日志列表
export function listProcedure(query) {
  return request({
    url: '/system/procedure/list',
    method: 'get',
    params: query
  })
}

// 查询储存过程步骤分布处理日志详细
export function getProcedure(procedureName) {
  return request({
    url: '/system/procedure/' + procedureName,
    method: 'get'
  })
}

// 新增储存过程步骤分布处理日志
export function addProcedure(data) {
  return request({
    url: '/system/procedure',
    method: 'post',
    data: data
  })
}

// 修改储存过程步骤分布处理日志
export function updateProcedure(data) {
  return request({
    url: '/system/procedure',
    method: 'put',
    data: data
  })
}

// 删除储存过程步骤分布处理日志
export function delProcedure(procedureName) {
  return request({
    url: '/system/procedure/' + procedureName,
    method: 'delete'
  })
}
